package com.gitee.zhanyao.codebase.java.weixin.service;

import com.gitee.zhanyao.codebase.java.weixin.model.WeiXinUserlist;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author zhanyao
 */
public interface IWeiXinService {


    String getToken();

    /**
     *
     * @param accessToken
     * @param departmentId
     * @param fetchChild 1/0：是否递归获取子部门下面的成员
     * @return
     */
    List<WeiXinUserlist> getUserList(String accessToken, Integer departmentId, Integer fetchChild);

    void sendMessage(String template, Map<String, String> templateParams, Set<String> toUsers) throws Exception;

}
